package com.baomidou.springboot.service.impl;

import java.io.Serializable;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import org.springframework.stereotype.Service;

/**
 * 通用接口
 */
@Service
public interface IService<T> {

    T selectByKey(Serializable key);

    int save(T entity);

    int delete(Serializable key);

    int updateAll(T entity);

    int updateByCondition(T entity,Wrapper<T> updateWrapper) ;

    public IPage<T> selectPageByCondition(IPage<T> page , QueryWrapper<T> selectWrapper);

}